package day0519;

import java.util.Scanner;

public class Test11 {
    public static void main(String[] args) {
        int[]  ary={0, 0, 0};//1.三个空间
        for (int i = 0; i < 3; i++) {//2.输入3个数
            ary[i]=new Scanner(System.in).nextInt();
        }
        //3.对三个数进行升序排列
        for (int i = 0; i < 2; i++) {
            if(ary[i] >ary[i+1]){
                int y = ary[i];
                ary[i] = ary[i+1];
                ary[i+1]= y;
            }
        }

        //   [ 2, 1, 3]  //比较除了最后一个数之外的所有数。(比第12行的循环少执行1次)
        for (int i = 0; i < 1; i++) {
            if(ary[i] >ary[i+1]){
                int y = ary[i];
                ary[i] = ary[i+1];
                ary[i+1]= y;
            }
        }


        //4.打印三个数
        for (int i = 0; i < 3; i++) {
            System.out.println(ary[i]);
        }
    }
}
